package org.snia.cdmi.model;

/**
 * Represents a grantee (entity) who can be assigned access permissions in an
 * {@link AccessControlList}. All grantees have an ID of some kind (though the
 * format of the ID can differ depending on the kind of grantee).
 */
public interface Grantee {

    /**
     * Sets the identifier for this grantee. The meaning of the identifier is
     * specific to each implementation of the Grantee.
     *
     * @param id
     *            The identifier for this grantee.
     */
    public void setIdentifier(String id);

    /**
     * Returns the identifier for this grantee. The meaning of the grantee
     * identifier is specific to each implementation of the Grantee.
     *
     * @return The identifier for this grantee.
     */
    public String getIdentifier();

}
